package com.tanhua.dubbo.api.exception;

import com.tanhua.model.vo.ExceptionResult;
import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class BusinessException extends RuntimeException{

    private ExceptionResult exceptionResult;

    public BusinessException(ExceptionResult exceptionResult) {
        super(exceptionResult.getErrMessage());
        this.exceptionResult = exceptionResult;
    }
}
